class Event < ActiveRecord::Base
  belongs_to :page
  belongs_to :user
  
  validates_presence_of :controller, :action, :page_id, :user_id, :timestamp
  validates_numericality_of :page_id, :user_id
  
end
